package com.wnxy.gym.vevue.core.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wnxy.gym.vevue.core.entity.Stadium;
import com.wnxy.gym.vevue.core.mapper.StadiumMapper;
import com.wnxy.gym.vevue.core.service.IStadiumService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.expression.spel.ast.NullLiteral;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jack
 * @since 2022-06-14
 */
@Service
public class StadiumServiceImpl extends ServiceImpl<StadiumMapper, Stadium> implements IStadiumService {
    @Autowired
    private StadiumMapper stadiumMapper;
    @Override
    public List<Stadium> getEntity(){

        return list();
    }

    @Override
    public  IPage<List<Stadium>> getInfo(IPage page, @Param("placeId") Long placeId,@Param("placeName") String placeName) {
        return stadiumMapper.getinfo(page,placeId,placeName);
    }
}
